import Vue from 'vue'

import 'normalize.css/normalize.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss'
import "./assets/fonts/iconfont.css"
import "./assets/css/common.css"

import { MessageBox } from 'element-ui';
import { Message } from 'element-ui'

Vue.prototype.$Message = Message;
Vue.prototype.$comfirm = MessageBox.comfirm;

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import App from './App'
import store from './store'
import router from './router'

import '@/icons'
import '@/permission'
import Axios from 'axios'

// Vue.prototype.$http = Axios;

import VueResource from 'vue-resource'
Vue.use(VueResource)

if (process.env.NODE_ENV === 'production') {
    const { mockXHR } = require('../mock')
    mockXHR()
}
Vue.use(ElementUI)

Vue.config.productionTip = false
Axios.defaults.baseURL = 'http://192.168.5.197:8040/PM'
    // Axios.defaults.baseURL = 'http://172.20.10.3:8040//PM'
new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})